package com.iisigroup.project.statistics;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.collections.CollectionUtils;

public class TestClass {

    static final String regexTxId = "TX[\\w1-9]L[\\w1-9]L[0-9]{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])\\d+";
    static final String noneAutoTokenExpr="@\\d{8}\n#unlock disable\n[\\w1-9]\\d{9}\n#unlock enable";
    static final String autoTokenExpr="@\\d{8}\n[\\w1-9]\\d{9}";
    static final String autoLockExpr="@\\d{8}\n.*\\d{8}.*";
    static final String regexId = "[\\w1-9]\\d{9}";
    
    static final String regexFTLCode = "[\\w1-9]{4}\\d{6}";
    
    
    protected  List<String> extractData(final String expr ,final String src){
	 final Set<String> init=new HashSet<String>();
	
	 final Pattern pattern = Pattern.compile(expr);
	 final Matcher matcher = pattern.matcher(src);
	 while(matcher.find()){	    
	     String extraData = matcher.group();
	     init.add(extraData);
	 }
	 final List<String> result =new ArrayList<String>(init);
	 Collections.sort(result);
	 return result;
    }
    public static void main(String[] args) {
	String sample ="4083000003";

    }
}
